/*
 * Copyright 2016 balena.io
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

.modal-drive-selector-modal .modal-content {
  width: 315px;
  height: 320px;
}

.modal-drive-selector-modal .modal-body {
  padding-top: 0;
  padding-bottom: 0;
}

.modal-drive-selector-modal .list-group-item[disabled] {
  cursor: not-allowed;
}

.modal-drive-selector-modal {

  .list-group-item-footer:has(span) {
    margin-top: 8px;
  }

  .list-group-item-heading,
  .list-group-item-text {
    word-break: break-all;
  }

  .list-group {
    margin-bottom: 0;
  }

  .list-group-item {
    display: flex;
    align-items: center;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    border-color: darken($palette-theme-light-background, 7%);
    padding: 12px 0;

    .list-group-item-section-expanded {
      flex-grow: 1;
      margin-left: 15px;
    }

    .list-group-item-section + .list-group-item-section {
      margin-left: 10px;
      display: inline-block;
      vertical-align: middle;
    }

    > .tick {
      font-size: 11px;
    }

    &:first-child {
      border-top: 0;
    }

    &[disabled] .list-group-item-heading {
      color: $palette-theme-light-soft-foreground;
    }

    .drive-init-progress {
      appearance: none;
      width: 100%;
      height: 2.5px;
      border: none;
      border-radius: 50% 50%;
    }

    .drive-init-progress::-webkit-progress-bar {
      background-color: $palette-theme-default-background;
      border: none;
      outline: none;
    }

    .drive-init-progress::-webkit-progress-value {
      border-bottom: 1px solid darken($palette-theme-primary-background, 15);
      background-color: $palette-theme-primary-background;
    }

  }

  .list-group-item-heading {
    font-size: 13px;
  }

  .list-group-item-text {
    line-height: 1;
    font-size: 11px;
    color: $palette-theme-light-soft-foreground;
  }

  .word-keep {
    word-break: keep-all;
  }
}

